package com.xiaoai.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Author
 * @Date 2021-09-28 22:05
 */
@RestController
public class TestController {

    @RequestMapping("/test")
    public Object test(HttpServletRequest request, String name, Map<String,Object> map) {
        System.out.println(name);
        return "test:"+name;
    }

}
